package com.cdl.service.impl;  																		  

import java.util.List;																					
import org.slf4j.Logger;																				
import org.slf4j.LoggerFactory;																			
import org.springframework.beans.factory.annotation.Autowired;											
import org.springframework.stereotype.Service;															

import ${url.daoPackage}.${className}Mapper;																		
import ${url.entityPackage}.${className};																	
import ${url.servicePackage}.${className}Service;																	
import com.github.pagehelper.PageInfo;																	
		
@Service("${lowerClassName}ServiceImpl")																	
public class ${className}ServiceImpl extends BasicServiceImpl<${className}> implements ${className}Service{	
		private static Logger logger = LoggerFactory.getLogger(${className}ServiceImpl.class);				  

		@Autowired																							
		${className}Mapper ${lowerClassName}Mapper ;																  

		@Override																							
		public List<${className}> getList(${className} ${lowerClassName}) {									
			logger.info("查询用户列表");																		
			List<${className}> u = ${lowerClassName}Mapper.getList(${lowerClassName});								
			return u;																						
		}																								  

		@Override																							
		public ${className} get(${className} ${lowerClassName}) {											
			${className} u = ${lowerClassName}Mapper.get(${lowerClassName});											
			return u;																						
		}																								  

		@Override																							
		public void add(${className} ${lowerClassName}) {														
			${lowerClassName}Mapper.add(${lowerClassName});															
		}																								  

		@Override																							
		public void update(${className} ${lowerClassName}) {													
			${lowerClassName}Mapper.update(${lowerClassName});															
		}																								  

		@Override																							
		public void delete(${className} ${lowerClassName}) {													
			${lowerClassName}Mapper.delete(${lowerClassName});															
		}																								  

		@Override																							
		public PageInfo<${className}> getPage(${className} ${lowerClassName}) {								
			return getPage(${lowerClassName}.getPageNum(),${lowerClassName}.getPageSize(),${lowerClassName});		
		}																									
}																									  


